<%= header %>
<%= boomerangScript %>
<script src="08-cross-origin.js" type="text/javascript"></script>
<script src="../../vendor/resourcetiming-compression/src/resourcetiming-decompression.js" type="text/javascript"></script>
<img src="/assets/img.jpg?beforeiframe" />
<script>
BOOMR_test.init({
	testAfterOnBeacon: true,
	ResourceTiming: {
		enabled: true
	},
	autorun: false,
	History: {
		enabled: true,
		auto: true
	}
});
</script>

<!-- won't be able to get any resources from this frame (changing only the port isn't XO in IE11) -->
<iframe id="cross-origin"></iframe>
<script>
var host = "<%= secondaryServer %>";
var port = (parseInt(window.location.port) || 4002);
window.crossOriginHost = host;
document.getElementById("cross-origin").src = "//" + host + ":" + port + "/pages/11-restiming/support/iframe.html?cross-origin";
</script>

<!-- should be able to get resources from this one -->
<iframe id="same-origin" src="support/iframe.html?same-origin"></iframe>
<img src="/assets/img.jpg?afteriframe" />
<%= footer %>
